package com.xiyang.demo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
//服务名称application.name: curd-server 千万别携程eureka应用名称
@FeignClient(value = "curd-server")
public interface FeignService {
    //根据接口直接调用
    @PostMapping("/addlock")
    String addId(@RequestParam("id")Long id);
}
